package com.myLearning.creatingpattern.factoryabs.section1;


/**
 * 仅生产产品等级2的商品
 */
public class Factory2 extends AbstractFactory{

    @Override
    public AbstractProdcutB createProductB() {
        return new ProductB2();
    }

    @Override
    public AbstractProductA createProductA() {
        return new ProductA2();
    }
}
